package org.dualr.litelog.entity;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.datastore.Text;
/**
 * Post.java 
 * @author	DualR
 * @mail	dualrs@gmail.com
 * @site	http://mimaiji.appspot.com || http://www.mimaiji.com
 * @date	2009-8-3
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Post {
	/* Post id */
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	@Persistent
	private String title;
	@Persistent
	private String name;
	@Persistent
	private Long categoryId;
	@Persistent
	private String tag;
	@Persistent
	private Text description;
	@Persistent
	private Date postDate;
	@Persistent
	private Text content;
	@Persistent
	private String author;
	@Persistent
	private String attachmentId;
	@Persistent
	private String image;
	@Persistent
	private String status;
	@Persistent
	private int hits;
	@Persistent
	private int commentCount;
	@Persistent
	private String commentStatus;
	@Persistent
	private String meta;
	@Persistent
	private String meta1;
	@Persistent
	private String meta2;
	@Persistent
	private String meta3;
	@Persistent
	private String meta4;
	

	public Post(String title, Long categoryId, String tag,
			Text description, Text content, String image, Date date, String status,
			String commentStatus, String author, int hits, int commentCount) {
		this.title = title;
		this.categoryId = categoryId;
		this.tag = tag;
		this.description = description;
		this.content = content;
		this.image = image;
		this.postDate = date;
		this.status = status;
		this.commentStatus = commentStatus;
		this.author = author;
		this.hits = hits;
		this.commentCount = commentCount;
		
	}
	public Post(Long id, String title, Long categoryId, 
			Text description, Text content, String image, String status,
			String commentStatus) {
		this.id = id;
		this.title = title;
		this.categoryId = categoryId;
		this.description = description;
		this.content = content;
		this.image = image;
		this.status = status;
		this.commentStatus = commentStatus;		
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Long getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}
	public String getTag() {
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	public Text getDescription() {
		return description;
	}
	public void setDescription(Text description) {
		this.description = description;
	}
	public Date getPostDate() {
		return postDate;
	}
	public void setPostDate(Date postDate) {
		this.postDate = postDate;
	}
	public Text getContent() {
		return content;
	}
	public void setContent(Text content) {
		this.content = content;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getAttachmentId() {
		return attachmentId;
	}
	public void setAttachmentId(String attachmentId) {
		this.attachmentId = attachmentId;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public int getHits() {
		return hits;
	}
	public void setHits(int hits) {
		this.hits = hits;
	}
	public int getCommentCount() {
		return commentCount;
	}
	public void setCommentCount(int commentCount) {
		this.commentCount = commentCount;
	}
	public String getCommentStatus() {
		return commentStatus;
	}
	public void setCommentStatus(String commentStatus) {
		this.commentStatus = commentStatus;
	}
	public String getMeta() {
		return meta;
	}
	public void setMeta(String meta) {
		this.meta = meta;
	}
	public String getMeta1() {
		return meta1;
	}
	public void setMeta1(String meta1) {
		this.meta1 = meta1;
	}
	public String getMeta2() {
		return meta2;
	}
	public void setMeta2(String meta2) {
		this.meta2 = meta2;
	}
	public String getMeta3() {
		return meta3;
	}
	public void setMeta3(String meta3) {
		this.meta3 = meta3;
	}
	public String getMeta4() {
		return meta4;
	}
	public void setMeta4(String meta4) {
		this.meta4 = meta4;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	
}
